if you have configured control station for email notification, then you can setup some sort of perl/bash script to run "nas_pool -size" queries" and capture the fields you need and then email them to you.
Thanks you for your response. Do you happen to have any info or examples how I can create and set this up . I have very little knowledge about perl scripting..
it's not very difficult at all. Basically you will need to instruct perl to execute Celerra commands, pipe them to a file and then massage them to give you the info you are looking for. You can also do the same thing with bash but i find perl to be much more efficient at parsing text. If you can wait a week i can whip something up when i get back from my overseas trip
Thank you for your response..This may seem like a stupid question but how do I run a perl script in celerra ? I have never ran a perl script in Celerra .If its not too much to ask can you provide step by step instructions how to connect celerra and run a perl script. It would certainly be appreciated,
btw. I can connect to Celerra via putty if that helps...
you're probably seeing this http://stackoverflow.com/questions/216202/why-does-an-ssh-remote-command-get-fewer-environment-variables-then-when-run-manu
I would just create a small shell skript that sets the necessary environment variables and then calls the server_ or nas_ command
no. I am not very good at perl. But i am trying to ssh to all celera box's from a windows machine and print logs out the cmd output. Once these logs are created i can parse them.
eg:"server_df ALL" output logs created for all celera machines via ssh.
dynamox
9 Legend
•
20.4K Posts
0
May 1st, 2009 00:00
darrendurgha
57 Posts
0
May 1st, 2009 06:00
Thanks you for your response. Do you happen to have any info or examples how I can create and set this up . I have very little knowledge about perl scripting..
Thanks again.
dynamox
9 Legend
•
20.4K Posts
0
May 3rd, 2009 23:00
darrendurgha
57 Posts
0
May 7th, 2009 02:00
I'll look forward for your response.
pittperson
96 Posts
0
May 7th, 2009 11:00
darrendurgha
57 Posts
0
May 7th, 2009 19:00
Thank you for your response..This may seem like a stupid question but how do I run a perl script in celerra ? I have never ran a perl script in Celerra .If its not too much to ask can you provide step by step instructions how to connect celerra and run a perl script. It would certainly be appreciated,
btw. I can connect to Celerra via putty if that helps...
Thank you in advance for your help..
Rainer_EMC
4 Operator
•
8.6K Posts
0
May 8th, 2009 03:00
the magic first two #! characters in the script tell Unix to start it using perl
pittperson
96 Posts
1
May 8th, 2009 05:00
2) chmod +x
darrendurgha
57 Posts
0
May 8th, 2009 17:00
I'm almost there.. how can forward the result in email ?
Thanks again,,,
Rainer_EMC
4 Operator
•
8.6K Posts
0
May 10th, 2009 15:00
| /usr/bin/Mail -s
prag2
3 Posts
0
December 28th, 2009 08:00
Do any one know how to set a env variables from a windows box using perl script
$ENV{PATH} = "/nas/bin:/nas/sbin:".$ENV{PATH};
$ENV{NAS_DB} = "/nas";
execute_ssh("/nas/bin/./server_df ALL",$hostname,"nas_info");
Rainer_EMC
4 Operator
•
8.6K Posts
0
December 28th, 2009 08:00
you're probably seeing this http://stackoverflow.com/questions/216202/why-does-an-ssh-remote-command-get-fewer-environment-variables-then-when-run-manu
I would just create a small shell skript that sets the necessary environment variables and then calls the server_ or nas_ command
Rainer
dynamox
9 Legend
•
20.4K Posts
0
December 28th, 2009 09:00
i did not find any good ssh modules for Windows so i've been using plink.
prag2
3 Posts
0
December 28th, 2009 09:00
i used the following and it did work
$out=execute_ssh("NAS_DB=/nas /nas/bin/./server_df ALL",$hostname,"log");
prag2
3 Posts
0
December 28th, 2009 09:00
no. I am not very good at perl. But i am trying to ssh to all celera box's from a windows machine and print logs out the cmd output. Once these logs are created i can parse them.
eg:"server_df ALL" output logs created for all celera machines via ssh.
with the following in code
$return_call=execute_ssh("/nas/bin/./server_df ALL",$hostname,"logfile");
I am getting error:
NAS_DB environment not defined