Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Access Win "performance counter" from unix?

by t0mas (Priest)
on Aug 03, 2003 at 00:18 UTC ( [id://280367]=note: print w/replies, xml ) Need Help??


in reply to Access Win "performance counter" from unix?

If you feel comfortable with sending unencrypted passwords across your network, then you can start the telnet server on a win2000 box, and if you disable NTLM authentication (set NTLM to 0 with the tlntadmn.exe program) you can log in on it and run programs from a *nix terminal.

One oddity, you need to print to STDOUT or STDERR to get any teminal output if you play with perl -e. perl -e "print yoo" won't work but perl -e "print STDOUT yoo" will.

Create a script on the win2000 machine and run it from the terminal, capture the output and do whatever with it.

Note: I don't advocate using telnet because you usually want your session encrypted and use ssh or something. But if you have a specific situation that makes it OK, then this solution will probably work.

/brother t0mas
  • Comment on Re: Access Win "performance counter" from unix?

Replies are listed 'Best First'.
Re: Re: Access Win "performance counter" from unix?
by Anonymous Monk on Aug 03, 2003 at 08:53 UTC
    At least with cygwin you also have ssh when you have security concerns. BTW I did this telnet stuff alot and it works great. Murat
Re: Re: Access Win "performance counter" from unix?
by zakzebrowski (Curate) on Aug 03, 2003 at 16:15 UTC
    Net::Telnet is your friend for working with telnet. It's easily scriptable and most systems have telnet support. This comes in handy when I have to use machines which I'm not sysadmin on, but I have a need to use, and the machine is on a private lan. (If a clever hacker can gain access to the lan, they can have access to my machine.)

    ----
    Zak
    Pluralitas non est ponenda sine neccesitate - mysql's philosphy

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://280367]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-26 06:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found