Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Access Win "performance counter" from unix?

by t0mas (Priest)
on Aug 03, 2003 at 00:18 UTC ( #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.)

    Pluralitas non est ponenda sine neccesitate - mysql's philosphy

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://280367]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2018-05-20 22:26 GMT
Find Nodes?
    Voting Booth?