Author

Topic: [ mining os ] nvoc - page 203. (Read 418546 times)

full member
Activity: 558
Merit: 194
October 03, 2017, 02:52:09 PM
One of my rigs running nvOC is using a MSI Z270-A PRO mobo with 7x 1080Ti's.  Rig is working great, but I got another 1080Ti I want to add to this rig and I'm all maxed out with 6 GPUs in the PCIe slot and the 7th in the M.2 slot via an adaptor.

So I'm going to swap out the mobo for an Asus PRIME Z270-A.  Already got the BIOS on the Asus configured (this will be my 2nd rig with a PRIME Z270-A).

So my question is, can I just stick the 32GB USB with nvOC on it from the MSI in the PRIME after I move the GPU's over, and expect it to just come up and start mining?

If not, no big deal, I'll just image a fresh USB, but since this mobo will be a permanent switch, but if I can safe some time just throwing on the USB used with the MSI, I'd rather do that, but if I'm going to run into issues, I'd rather not find out after tearing the rig down and rebuilding it with the new mobo.
full member
Activity: 686
Merit: 140
Linux FOREVER! Resistance is futile!!!
October 03, 2017, 02:48:09 PM
Loving the dstm's zcash miner
With EWBF I had random gpu utilization drops below 90 and wdog alerts
But with dstm and same oc settings its been 2 days since I seen a utilization drop and alert and utilization is constantly on 99-100 on all gpu's

Recommend to try it if you are mining equihash.
https://bitcointalksearch.org/topic/ann-dstms-zcash-equihash-nvidia-miner-v062-linux-windows-2021765
Latest version is 0.5 download and replace your existing in
Code:
/home/m1/zec/zm/

agree, this should be the default zcash miner imo.
It is the default since 19-1.2
full member
Activity: 224
Merit: 100
October 03, 2017, 02:32:06 PM
Loving the dstm's zcash miner
With EWBF I had random gpu utilization drops below 90 and wdog alerts
But with dstm and same oc settings its been 2 days since I seen a utilization drop and alert and utilization is constantly on 99-100 on all gpu's

Recommend to try it if you are mining equihash.
https://bitcointalksearch.org/topic/ann-dstms-zcash-equihash-nvidia-miner-v062-linux-windows-2021765
Latest version is 0.5 download and replace your existing in
Code:
/home/m1/zec/zm/

agree, this should be the default zcash miner imo.
full member
Activity: 686
Merit: 140
Linux FOREVER! Resistance is futile!!!
October 03, 2017, 02:13:05 PM
Loving the dstm's zcash miner
With EWBF I had random gpu utilization drops below 90 and wdog alerts
But with dstm and same oc settings its been 2 days since I seen a utilization drop and alert and utilization is constantly on 99-100 on all gpu's

Recommend to try it if you are mining equihash.
https://bitcointalksearch.org/topic/ann-dstms-zcash-equihash-nvidia-miner-v062-linux-windows-2021765
Latest version is 0.5 download and replace your existing in
Code:
/home/m1/zec/zm/
full member
Activity: 686
Merit: 140
Linux FOREVER! Resistance is futile!!!
October 03, 2017, 12:39:16 PM
To all those bash experts...
Need an script to give me what miner is running so I can make the Miner Output tailored for each miner


I have this code that I am using in my beta telegram script I'll post some day to this forum:

Minig address:
MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')

Exec:
MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")

Not sure is good for what you need. Not sure yet if I will get these vars from system or Nvoc vars.
 

Thanks,
but I need some thing to only give miner name,
so if I'm mining zec with zm dstm ,
it gives me zm not home/m1/zec/zm/zm

May be easier that I strip variables from 1bash.

ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 1 | rev

Nice,
Now another problem all ccminers are ccminer and directory name is identifier.
I should go with 1bash variables, much easier for sure.
Thanks any way.

It is certainly more coherent to use 1bash vars.
If they are called ccminer to get the  directory name's identifier:
ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 2 | rev

We assume that the exec is in the first level of directory name wich identifies the miner.

Just like to add my thoughts to it, can't we use COIN variable from 1 bash and

if COIN='MPH' ? get this result

Code:
CURRENT_COIN=$(head -n 1 /home/m1/current-profit)

and trim it

similarly do the same if its using COIN='NICE_HASH_PROFIT_SWITCHING'

That is already included,
I was thinking of a  better way to trim and post all miners output to the page.
Think I found it... no worries.
full member
Activity: 210
Merit: 100
October 03, 2017, 12:23:53 PM
I'm trying to learn how to properly use the 1Bash file.. I have it currently up and running and is stable so far and very impressed but I would like assistance with reducing power and overclocking the GPU's core (1080ti's).. My questions are probably extremely "newbie-like" so if someone can PM me I would appreciate it.
newbie
Activity: 18
Merit: 0
October 03, 2017, 11:55:57 AM
The rig restart the miner each 11-12 hours, only the miner without to restart the OS. I am curently mining ETH+DCR on suprnova. On nicehash (ETH+DCR) it didnt happent with the same configuration. Is it normal?

Thx!
Not normal,
Set telegram alert so it notify you if gpu lost, low utilization , ....

I just did it. Thx for advice. Let's see if it will restart again and what would be there about temps, gpu's.....

Can you please explain what is the difference between the 3 types of telegrams? papampi, baliminer and kk003.

And searching the sys log file I found this:


Oct  3 10:33:56 m1-desktop org.gtk.vfs.Daemon[1267]: ** (process:2863): WARNING **: Couldn't create directory monitor on smb://x-gnome-default-workgroup/. Error: The specified location is not mounted
Oct  3 10:52:00 m1-desktop org.gtk.vfs.Daemon[1267]: message repeated 4 times: [ ** (process:2863): WARNING **: Couldn't create directory monitor on smb://x-gnome-default-workgroup/. Error: The specified location is not mounted]
Oct  3 11:17:01 m1-desktop CRON[26725]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Oct  3 12:17:01 m1-desktop CRON[28669]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Oct  3 12:44:01 m1-desktop CRON[29560]: (root) CMD (   test -x /etc/cron.daily/popularity-contest && /etc/cron.daily/popularity-contest --crond)
Oct  3 13:17:01 m1-desktop CRON[30928]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Oct  3 13:43:05 m1-desktop systemd[1]: Started Session c2 of user m1.


I see a warning 10:33 and arround 13:00, I guess 13:43:05 the miner restarted.
Can someone explain it a lil?

Thx!
newbie
Activity: 18
Merit: 0
October 03, 2017, 11:31:50 AM
The rig restart the miner each 11-12 hours, only the miner without to restart the OS. I am curently mining ETH+DCR on suprnova. On nicehash (ETH+DCR) it didnt happent with the same configuration. Is it normal?

Thx!
Not normal,
Set telegram alert so it notify you if gpu lost, low utilization , ....

I just did it. Thx for advice. Let's see if it will restart again and what would be there about temps, gpu's.....

Can you please explain what is the difference between the 3 types of telegrams? papampi, baliminer and kk003.
full member
Activity: 378
Merit: 104
nvOC forever
October 03, 2017, 10:52:26 AM
To all those bash experts...
Need an script to give me what miner is running so I can make the Miner Output tailored for each miner


I have this code that I am using in my beta telegram script I'll post some day to this forum:

Minig address:
MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')

Exec:
MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")

Not sure is good for what you need. Not sure yet if I will get these vars from system or Nvoc vars.
 

Thanks,
but I need some thing to only give miner name,
so if I'm mining zec with zm dstm ,
it gives me zm not home/m1/zec/zm/zm

May be easier that I strip variables from 1bash.

ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 1 | rev

Nice,
Now another problem all ccminers are ccminer and directory name is identifier.
I should go with 1bash variables, much easier for sure.
Thanks any way.

Why don't you use source 1bash in your script then read any variable from 1bash to what is set instead of using ps and grep... eg. if $COIN="ZEC" then...

I had an idea to create REPORT script in similar manner so that people can run bash REPORT then post their problem with the report attached to the message in the forum. It will make troubleshooting and answering questions much easier than asking them did you set this, did you set that, what's your OC value... I was thinkering about how to execute it and it seems pulling variable settings from 1bash and supplementing with nvidia-smi/nvidia-settings is the best approach. With all the values on hand it's easy to either create report output or create web stats. We can work together on this... I think next week my schedule is more relaxed and i can work a bit on this

Great idea, it would help us to find and fix the problems for all newbies very quickly and easily. Looking forward for it, I may add bits and bobs once I see your initial version. Good Luck Smiley
member
Activity: 117
Merit: 10
October 03, 2017, 10:51:22 AM
To all those bash experts...
Need an script to give me what miner is running so I can make the Miner Output tailored for each miner


I have this code that I am using in my beta telegram script I'll post some day to this forum:

Minig address:
MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')

Exec:
MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")

Not sure is good for what you need. Not sure yet if I will get these vars from system or Nvoc vars.
 

Thanks,
but I need some thing to only give miner name,
so if I'm mining zec with zm dstm ,
it gives me zm not home/m1/zec/zm/zm

May be easier that I strip variables from 1bash.

ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 1 | rev

Nice,
Now another problem all ccminers are ccminer and directory name is identifier.
I should go with 1bash variables, much easier for sure.
Thanks any way.

It is certainly more coherent to use 1bash vars.
If they are called ccminer to get the  directory name's identifier:
ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 2 | rev

We assume that the exec is in the first level of directory name wich identifies the miner.

Just like to add my thoughts to it, can't we use COIN variable from 1 bash and

if COIN='MPH' ? get this result

Code:
CURRENT_COIN=$(head -n 1 /home/m1/current-profit)

and trim it

similarly do the same if its using COIN='NICE_HASH_PROFIT_SWITCHING'

Ok, I am going to stick here the beta code for my function system portion so may be usefull:

Code:
function system_info ()
{

# Clear the file's content if exists and is not empty
if [[ -s ~/kk003_telegram_data/system_data.txt ]]; then
    > ~/kk003_telegram_data/system_data.txt
fi

# Title for system information
echo "** System information **" >> ~/kk003_telegram_data/system_data.txt

# Hostname
if [[ "$SEND_RIG_HOSTNAME" == "YES" ]]; then
    echo -n "Hostname : " >> ~/kk003_telegram_data/system_data.txt
    hostname >> ~/kk003_telegram_data/system_data.txt
fi

# Worker name
if [[ "$SEND_WORKERNAME" == "YES" ]]; then
    echo -n "Worker   : " >> ~/kk003_telegram_data/system_data.txt
    echo "$WORKERNAME" >> ~/kk003_telegram_data/system_data.txt
fi

# Mining coin
if [[ "$SEND_MINING_COIN" == "YES" ]]; then
    echo -n "Coin     : " >> ~/kk003_telegram_data/system_data.txt
    echo "$COIN" >> ~/kk003_telegram_data/system_data.txt
fi

# Mining address
# Ok, here I take my chances and I'll try to get the mining address directly from the process list.
# The address field should be the larger string so that is what I will go for.
# What I do is replace spaces for new lines (\n) so I split the hole thing in lines.
# Then remove the line that contains "\home\m1" cos is/may be a large one and I know for sure this is not the mining address.
# Note that I scape the "\" with "/" on front.
# I get the larger line with the help of "awk"
# If there is a dot I remove all chars from it to the end of line cos as long as I know address don't have a dot (remove the worker name)
if [[ "$SEND_MINING_ADDRESS" == "YES" ]]; then
    MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')
    echo -n "Address  : " >> ~/kk003_telegram_data/system_data.txt
    if [[ "$MASK_MINING_ADDRESS" == "YES" ]]; then
ADDRESS_HEAD=$(echo "$MINING_ADDRESS" | cut -c1-5) # Get the first 5 chars
ADDRESS_TAIL=$(echo -n "$MINING_ADDRESS" | tail -c 5) # Get the last 5 chars
MASKED_ADDRESS=$ADDRESS_HEAD"*****"$ADDRESS_TAIL # Paste the hole thing
echo "$MASKED_ADDRESS" >> ~/kk003_telegram_data/system_data.txt
    else
echo "$MINING_ADDRESS" >> ~/kk003_telegram_data/system_data.txt
    fi
fi

# Miner exec name
if [[ "$SEND_MINER_EXEC_NAME" == "YES" && "$SEND_MINER_EXEC_PATH" == "YES" ]]; then
    MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")
    echo -n "Exec     : " >> ~/kk003_telegram_data/system_data.txt
    echo "$MINER_NAME" >> ~/kk003_telegram_data/system_data.txt
elif [[ "$SEND_MINER_EXEC_NAME" == "YES" ]]; then
    MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | grep -oE "[^/]+$")
    echo -n "Exec : " >> ~/kk003_telegram_data/system_data.txt
    echo "$MINER_NAME" >> ~/kk003_telegram_data/system_data.txt
fi

# Ips
if [[ "$SEND_PRIVATE_IP" == "YES" ]]; then
    echo -n "Private Ip : " >> ~/kk003_telegram_data/system_data.txt
    hostname -I >> ~/kk003_telegram_data/system_data.txt
fi

if [[ "$SEND_PUBLIC_IP" == "YES" ]]; then
    echo -n "Public Ip  : " >> ~/kk003_telegram_data/system_data.txt
    PUBLIC_IP=$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')
    if [[ "$MASK_PUBLIC_IP" == "YES" ]]; then
IP_ADDRESS_HEAD=$(echo "$PUBLIC_IP" | cut -c1-3) # Get the first 3 chars
IP_ADDRESS_TAIL=$(echo -n "$PUBLIC_IP" | tail -c 3) # Get the last 3 chars
IP_MASKED_ADDRESS=$IP_ADDRESS_HEAD"*****"$IP_ADDRESS_TAIL # Paste the hole thing
echo $IP_MASKED_ADDRESS >> ~/kk003_telegram_data/system_data.txt
    else
echo $PUBLIC_IP >> ~/kk003_telegram_data/system_data.txt
    fi
fi

# Up since
echo -n "Up since   : " >> ~/kk003_telegram_data/system_data.txt
uptime -s >> ~/kk003_telegram_data/system_data.txt

# Up time
echo -n "Time up    : " >> ~/kk003_telegram_data/system_data.txt
uptime -p | sed 's/up //' >> ~/kk003_telegram_data/system_data.txt

# Ram
if [[ "$SEND_RAM" == "YES" ]]; then
    echo -n "Ram : " >> ~/kk003_telegram_data/system_data.txt
    RAM=$(grep MemTotal /proc/meminfo | awk '{print $2}' | xargs -I {} echo "scale=4; {}/1024^2" | bc)
    echo "$RAM Gb"  >> ~/kk003_telegram_data/system_data.txt
fi

# Cpu model
echo -n "Cpu : " >> ~/kk003_telegram_data/system_data.txt
CPU_MODEL=$(cat /proc/cpuinfo | grep 'model name' | uniq | cut -d":" -f2)
NUMBER_OF_CORES=$(nproc) # Number of cores
CPU_SPECS="$CPU_MODEL (cores = $NUMBER_OF_CORES)"
echo $CPU_SPECS >> ~/kk003_telegram_data/system_data.txt

# Load average
echo "Load average : " >> ~/kk003_telegram_data/system_data.txt
# Get cpu load average for 1, 5 and 15 minutes in a single string and remove spaces
AVERAGES=$(uptime | sed 's/.*: //g; s/ //g')
 
AVERAGE_1=$(echo $AVERAGES | cut -d"," -f1)
AVERAGE_5=$(echo $AVERAGES | cut -d"," -f2)
AVERAGE_15=$(echo $AVERAGES | cut -d"," -f3)

# Returns "1" when the load average is equal or greater than number of cpu cores
# else returns "0"
AVERAGE_1_HIGH=$(echo "$AVERAGE_1 >= $NUMBER_OF_CORES" | bc -l )
AVERAGE_5_HIGH=$(echo "$AVERAGE_5 >= $NUMBER_OF_CORES" | bc -l )
AVERAGE_15_HIGH=$(echo "$AVERAGE_15 >= $NUMBER_OF_CORES" | bc -l )

# Check if load average is to high
if [[ $AVERAGE_1_HIGH -eq 1 ]]; then
    echo "$AVERAGE_1 (last minute) WARNING: cpu load average too high" >> ~/kk003_telegram_data/system_data.txt
    WARNING_CPU_LOAD_AVERAGE="WARNING: Cpu load average too high!!!"
    WARNING=1
else
    echo "$AVERAGE_1 (last minute)" >> ~/kk003_telegram_data/system_data.txt
fi

if [[ $AVERAGE_5_HIGH -eq 1 ]]; then
    echo "$AVERAGE_5 (last 5 minutes) WARNING: cpu load average too high" >> ~/kk003_telegram_data/system_data.txt
    WARNING_CPU_LOAD_AVERAGE="WARNING: Cpu load average too high!!!"
    WARNING=1
else
    echo "$AVERAGE_5 (last 5 minutes)" >> ~/kk003_telegram_data/system_data.txt
fi

if [[ $AVERAGE_15_HIGH -eq 1 ]]; then
    echo "$AVERAGE_15 (last 15 minutes) WARNING: cpu load average too high" >> ~/kk003_telegram_data/system_data.txt
    WARNING_CPU_LOAD_AVERAGE="WARNING: Cpu load average too high!!!"
    WARNING=1
else
    echo "$AVERAGE_15 (last 15 minutes)" >> ~/kk003_telegram_data/system_data.txt
fi

if [[ $AVERAGE_1_HIGH -eq 1 || $AVERAGE_5_HIGH -eq 1 || $AVERAGE_15_HIGH -eq 1 ]]; then
    echo $WARNING_CPU_LOAD_AVERAGE >> ~/kk003_telegram_data/system_data.txt
fi

# who is logged in the system
if [[ "$SEND_LOGGED_USERS" == "YES" ]]; then
    echo "Logged in users : " >> ~/kk003_telegram_data/system_data.txt
    who >> ~/kk003_telegram_data/system_data.txt

    # Here I check if there is an open sesion on any display (like display 0). If not may be the x server is down
    DISPLAY=$(who | grep "(:")

    if [[ -z "$DISPLAY" ]]; then
WARNING_DISPLAY="WARNING: Not a user logged in any Display. May be X server is NOT running"
echo $WARNING_DISPLAY >> ~/kk003_telegram_data/system_data.txt
WARNING=1
    fi

    echo "" >> ~/kk003_telegram_data/system_data.txt
fi

# Ensure system has all gpus
echo "System is reporting : $GPU_COUNT Gpus" >> ~/kk003_telegram_data/system_data.txt
echo "System should have  : $NUMBER_GPUS_FOR_SURE Gpus" >> ~/kk003_telegram_data/system_data.txt

if [[ $GPU_COUNT -ne $NUMBER_GPUS_FOR_SURE ]]; then
    echo "WARNING: THERE MAY BE A PROBLEM; we should have $NUMBER_GPUS_FOR_SURE GPUs but nvidia-smi reports $GPU_COUNT" >> ~/kk003_telegram_data/system_data.txt
fi

echo "" >> ~/kk003_telegram_data/system_data.txt

}

full member
Activity: 200
Merit: 101
October 03, 2017, 10:49:37 AM
hah... damNmad had the same idea... we posted at the same time lol... good thinkink
full member
Activity: 200
Merit: 101
October 03, 2017, 10:47:33 AM
To all those bash experts...
Need an script to give me what miner is running so I can make the Miner Output tailored for each miner


I have this code that I am using in my beta telegram script I'll post some day to this forum:

Minig address:
MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')

Exec:
MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")

Not sure is good for what you need. Not sure yet if I will get these vars from system or Nvoc vars.
 

Thanks,
but I need some thing to only give miner name,
so if I'm mining zec with zm dstm ,
it gives me zm not home/m1/zec/zm/zm

May be easier that I strip variables from 1bash.

ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 1 | rev

Nice,
Now another problem all ccminers are ccminer and directory name is identifier.
I should go with 1bash variables, much easier for sure.
Thanks any way.

Why don't you use source 1bash in your script then read any variable from 1bash to what is set instead of using ps and grep... eg. if $COIN="ZEC" then...

I had an idea to create REPORT script in similar manner so that people can run bash REPORT then post their problem with the report attached to the message in the forum. It will make troubleshooting and answering questions much easier than asking them did you set this, did you set that, what's your OC value... I was thinkering about how to execute it and it seems pulling variable settings from 1bash and supplementing with nvidia-smi/nvidia-settings is the best approach. With all the values on hand it's easy to either create report output or create web stats. We can work together on this... I think next week my schedule is more relaxed and i can work a bit on this
full member
Activity: 378
Merit: 104
nvOC forever
October 03, 2017, 10:43:01 AM
To all those bash experts...
Need an script to give me what miner is running so I can make the Miner Output tailored for each miner


I have this code that I am using in my beta telegram script I'll post some day to this forum:

Minig address:
MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')

Exec:
MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")

Not sure is good for what you need. Not sure yet if I will get these vars from system or Nvoc vars.
 

Thanks,
but I need some thing to only give miner name,
so if I'm mining zec with zm dstm ,
it gives me zm not home/m1/zec/zm/zm

May be easier that I strip variables from 1bash.

ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 1 | rev

Nice,
Now another problem all ccminers are ccminer and directory name is identifier.
I should go with 1bash variables, much easier for sure.
Thanks any way.

It is certainly more coherent to use 1bash vars.
If they are called ccminer to get the  directory name's identifier:
ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 2 | rev

We assume that the exec is in the first level of directory name wich identifies the miner.

Just like to add my thoughts to it, can't we use COIN variable from 1 bash and

if COIN='MPH' ? get this result

Code:
CURRENT_COIN=$(head -n 1 /home/m1/current-profit)

and trim it

similarly do the same if its using COIN='NICE_HASH_PROFIT_SWITCHING'
member
Activity: 117
Merit: 10
October 03, 2017, 10:34:58 AM
To all those bash experts...
Need an script to give me what miner is running so I can make the Miner Output tailored for each miner


I have this code that I am using in my beta telegram script I'll post some day to this forum:

Minig address:
MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')

Exec:
MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")

Not sure is good for what you need. Not sure yet if I will get these vars from system or Nvoc vars.
 

Thanks,
but I need some thing to only give miner name,
so if I'm mining zec with zm dstm ,
it gives me zm not home/m1/zec/zm/zm

May be easier that I strip variables from 1bash.

ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 1 | rev

Nice,
Now another problem all ccminers are ccminer and directory name is identifier.
I should go with 1bash variables, much easier for sure.
Thanks any way.

It is certainly more coherent to use 1bash vars.
If they are called ccminer to get the  directory name's identifier:
ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 2 | rev

We assume that the exec is in the first level of directory name wich identifies the miner.
full member
Activity: 378
Merit: 104
nvOC forever
October 03, 2017, 10:34:25 AM
Guys help plz.
I want see how my rig ZEC farming via web browser.
How i can configure that? i didnt see in bash where i can add --api 127.0.0.1:42000 or 0.0.0.0:42000
When i add that in Miner.cfg it didnt work. i trying from another computer (rig ip):42000 and got nothing.
I'm writing the web stats for nvOC, its almost ready.
Hopefully will be pushed to next update
In the mean time, open 3main, find EWBF line for your coin and add the api args

Code:
screen -dmS miner $HCD --server $ZEC_POOL --user $ZECADDR --pass z --port $ZEC_PORT --api 0.0.0.0:42000;

Gonna be some thing like this :



Great work Papampi, it would be very useful for many fellow users a lot. I wish you all the luck with it Smiley
full member
Activity: 686
Merit: 140
Linux FOREVER! Resistance is futile!!!
October 03, 2017, 10:26:29 AM
To all those bash experts...
Need an script to give me what miner is running so I can make the Miner Output tailored for each miner


I have this code that I am using in my beta telegram script I'll post some day to this forum:

Minig address:
MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')

Exec:
MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")

Not sure is good for what you need. Not sure yet if I will get these vars from system or Nvoc vars.
 

Thanks,
but I need some thing to only give miner name,
so if I'm mining zec with zm dstm ,
it gives me zm not home/m1/zec/zm/zm

May be easier that I strip variables from 1bash.

ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 1 | rev

Nice,
Now another problem all ccminers are ccminer and directory name is identifier.
I should go with 1bash variables, much easier for sure.
Thanks any way.
member
Activity: 117
Merit: 10
October 03, 2017, 10:19:02 AM
To all those bash experts...
Need an script to give me what miner is running so I can make the Miner Output tailored for each miner


I have this code that I am using in my beta telegram script I'll post some day to this forum:

Minig address:
MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')

Exec:
MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")

Not sure is good for what you need. Not sure yet if I will get these vars from system or Nvoc vars.
 

Thanks,
but I need some thing to only give miner name,
so if I'm mining zec with zm dstm ,
it gives me zm not home/m1/zec/zm/zm

May be easier that I strip variables from 1bash.

ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 1 | rev

EDIT: Not sure but some times ps may not work. Try to run ewbf, make it get the data from its config file (not from command line) and see if ps works. Hope helps.
full member
Activity: 686
Merit: 140
Linux FOREVER! Resistance is futile!!!
October 03, 2017, 10:11:56 AM
To all those bash experts...
Need an script to give me what miner is running so I can make the Miner Output tailored for each miner


I have this code that I am using in my beta telegram script I'll post some day to this forum:

Minig address:
MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')

Exec:
MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")

Not sure is good for what you need. Not sure yet if I will get these vars from system or Nvoc vars.
 

Thanks,
but I need some thing to only give miner name,
so if I'm mining zec with zm dstm ,
it gives me zm not home/m1/zec/zm/zm

May be easier that I strip variables from 1bash.
member
Activity: 117
Merit: 10
October 03, 2017, 10:02:03 AM
To all those bash experts...
Need an script to give me what miner is running so I can make the Miner Output tailored for each miner


I have this code that I am using in my beta telegram script I'll post some day to this forum:

Minig address:
MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')

Exec:
MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")

Not sure is good for what you need. Not sure yet if I will get these vars from system or Nvoc vars.
 
newbie
Activity: 10
Merit: 0
October 03, 2017, 09:57:34 AM
hey guys, can someone point me how to mine zec in nicehash? I tried edit 1bash but no luck. Currently I using v019.

Thanks

edit*** - its okay now. I just reduce the MC to default setting and it running
Jump to: