Think about Loose Coupling | |
PerlMonks |
Handling output from nslookup and pingby Anonymous Monk |
on May 04, 2004 at 22:01 UTC ( [id://350598]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
This is what I am trying to do with Perl - my code is down below these instructions - the commented parts are the ones I can't figure out.... nslookup hostname- if it comes with xx.xxx.xxx.110 do nothing. If it comes back with xx.xxx.xxx.110 then; Send mail here... ping hostname.domain.com - if no reply do nothing. If alive then; ssh root@xx.xxx.xxx.xxx 3dpipe wideip hostname pool pool_sde_primary virtual show all - look for enabled. If not found then; ssh root@xx.xxx.xxx.xxx 3dpipe virtual xx.xxx.xxx.110:443 disabled ssh root@xx.xxx.xxx.xxx 3dpipe virtual xx.xxx.xxx.110:443 disabled ssh root@xx.xxx.xxx.xxx 3dpipe virtual xx.xxx.xxx.110:443 enable ssh root@xx.xxx.xxx.xxx 3dpipe virtual xx.xxx.xxx.110:443 enable 3dpipe wideip hostname pool pool_sde_primary virtual show all ssh root@xx.xxx.xxx.xxx 3dpipe wideip hostname pool pool_sde_primary virtual show all send mail blah blah Here is what I have so far....
Edit by BazB: obsure IP address missed by OP, retitle from "Net::SSH schtuff...."
Back to
Seekers of Perl Wisdom
|
|