-1
votes
2answers
69 views

Trying to bind a port on a completely different IP yet says it is in use

My host has given me a range of usable IP's for example (10.1.2.100 - 10.1.2.105). These did not come pre-bound to the OS, so I manually had to bind them. The only problem I am having is that when I ...
1
vote
2answers
160 views

How to set ip address permanently

This might sound a little strange, but I try to achieve to set up an ip address permanently in Ubuntu using the command line, but not an editor. My idea is to provision servers and just type in the ...
-1
votes
2answers
108 views

Monitor port status in Linux [closed]

I want to monitor the list of used ports in linux system. I want to make a script that can run an alert when a new port is up or down. For example when the port 8080 is up , i get an alert: this port ...
0
votes
1answer
187 views

Issue with ifconfig in a shell script (using cron)

If I execute this script manually in Debian: #!/bin/bash /sbin/ifconfig wlan0 down /sbin/ifconfig wlan0 up sudo iwconfig wlan0 essid "WLAN_NETWORK" sudo iwconfig wlan0 key myPassword sudo dhclient ...
-2
votes
1answer
91 views

Adjusting output of tail -f on website log [closed]

I am real-time monitoring my website logs with tail -f, but I am having trouble getting just the following to show in the results in this order: Host Name - IP Address - Page - Date & Time This ...
2
votes
1answer
1k views

How to retrieve the current Windows NLA network location from command-line?

We have a Windows Server 2008 R2 domain controller which always sets its NLA location to 'Network 3' after a reboot. Without fail, this defaults to Public, which screws with my Domain profile ...
1
vote
1answer
316 views

Accessing Workgroup Shared Folder from Domain

I have a domain and a workgroup. My users are supposed to upload files on regular basis to several shared folders on the workgroup. I have difficulty accessing the workgroup shared folders without ...
0
votes
1answer
163 views

is it possible to provide variable arguments to xinetd service?

I have created a bash script to listen on specific port (using xinetd), so whenever there is someone connecting to port, then it invokes the script and provides its output to user. But i need to ...
1
vote
1answer
438 views

How to execute a script only once, immediately after ALL network interfaces are up in OpenSUSE?

I run Opensuse 12.2. I have 3 network interfaces, eth[012] The interfaces are configured in /etc/sysconfig/network/ifcfg-eth[012] I want to execute a script immediately after ALL three interfaces ...
0
votes
1answer
72 views

How to check authenticated access to MS Windows machines in a batch

I am checking with nessus the vulnerability status of MS Windows machines on a network I do not manage for which I have received appropriate domain-level credentials. It works but the results I get ...
-1
votes
4answers
303 views

How can i find firewall rules and settings via command line in linux

I'm writing a script to find all the firewall details, routing information, and important network related via command line. I can fetch the firewall configuration with iptables -nvL, but I'm not sure ...
1
vote
2answers
239 views

netsh doesn't provide commands

According to Netsh Commands for Wired Local Area Network (LAN) in Windows Server 2008 and Windows Server 2008 R2, netsh should provide commands such as netsh add profile filename="profile.xml" ...
6
votes
9answers
946 views

Successfully, permanently ban a user from a website? [closed]

I have a social networking website and I want to ban a user from the website. I've added his IP address to the ban list in the .htacess file and to the php level for banning that user, but he keeps ...
-1
votes
1answer
389 views

shell script to replace subnet mask and default GW

I need to create a shell script the gets as first parameter a subnet mask and as the second paramater a GW address. something like this: "replace_IPs.sh 255.255.0.0. 10.0.0.254" by running this ...
0
votes
2answers
370 views

Need a bash script to replace static IP with a new IP address

I would like to have a bash script for Centos machine. I want the script to show me the current IP Address /subnet mask / Default GW. and give me option to enter a new IP Address /subnet Mask / ...
-2
votes
2answers
86 views

Finding if a given PC name exists on a network

I have been given a network share address by my infra team, but it doesn't seem to come up when I address it. The address is supposed to contain code for a project build, which I need. I have pinged ...
2
votes
4answers
560 views

linux + which tool can help to identify which eth in the Linux machines connected to which port in the cisco switch

I have a system with more than 50 different Linux machines (BLADE machines) with the following IP range 165.23.1.21-165.23.1.64 ( each Linux machine have 4 eth - eth1,2,3,4) The system ...
0
votes
1answer
87 views

Network drive: move generates an error

I'm trying to create a script in an application. The application should call cmd.exe and cmd.exe should run a statement pushd \\file\share && move filename.txt \\file\share\newfilename.txt ...
0
votes
1answer
174 views

Setting metrics in ubuntu for eth0 and wlan2

I have two scripts, one copying files from machines on closed network (no internet) to the hard drive of the laptop and the other script trying send these files to over the internet using the wlan. ...
1
vote
2answers
726 views

Check if a specific IP address exists on local NIC

I'm looking for a simple script or batch method for checking the existence of a specific IP address (being moved between machines via NETSH) on the local network card. I need to start up certain ...
0
votes
1answer
65 views

popup when accessing to a mapped drive

My company is concerned about information being leaked. We are implementing some securities now. As one of them they asked me to write a script to display a popup message when a user is trying to ...
1
vote
1answer
69 views

Testing the load factor in my lab

I am a system admin in a lab, I have ~90 computers in the lab and I want to check the load factor on them.. meaning, to check how many people are working on the computers hourly.. To see if I need to ...
0
votes
4answers
134 views

Remote reboot of windows to knoppix

I am attempting to develop an Auditing application. This audit application will be employed on windows networks. The Audit will need to discover Hardware and software details of all machines ...
0
votes
2answers
130 views

What is the best/easiest way to use scripts to analyze network traffic?

I'm looking to analyze packets via scripts. I'd like to use something high level. I'm in a mac/linux environment. I'm currently looking at different python+libpcap libraries. Perhaps lua+wireshark ...
3
votes
3answers
166 views

How to know that my IP is invalid

I have a script running that will start up an interface with a new IP. If the script comes up with an IP that is already in use i am in trouble. Is it possible that the script set up the new Ip, ...
0
votes
3answers
55 views

windows server 2008 scripting on loss of network

ok the idea is to run a script (pref either powershell or vbs) on the event that there is a network failure (e.g. when a network cable gets unplugged for whatever reason). This possible? im going ...
3
votes
4answers
3k views

Disable a specific ethernet card via batch commands on Windows

What I would like to do is disable a NIC based on the connection name (aka: what you see in the "network connections" window, or what you would use with netsh commands). I know enabling/disabling can ...
1
vote
8answers
1k views

how to visit every computer on the network and modify the hosts file in windows xp

We need to append a line to the hosts file for every user on our network. I have admin privileges, but don't know the first thing about windows scripting. Can someone point me in the right direction ...
0
votes
3answers
2k views

Script to ping all machines in the network, to find the machines that are on?

I am looking for a simple script (that can be executed in windows platform) to ping all machines, and to write the IP of "On" machines (machines that'll reply) to a text file.
1
vote
1answer
4k views

Managing network interfaces on RHEL/CentOS with GUI + scripting (system-config-network)

We have two load balanced CentOS 5.3 webservers that handle a decent number (~20) of individualized shopping websites. The end result being that we have to have a separate secure site per product, ...
2
votes
4answers
2k views

Bash snippet to see if something is listening on a port?

I want to see if something is listening on a port on localhost. I was going to use nc and check the exit code. Something like this: echo "" | nc localhost 14881 echo $? Any other suggestions?
4
votes
6answers
5k views

How can I run a script when my network connection changes?

I'd like to create a script to do various things when the network connection changes. For example, if the machine connects to my office network I might desire it to: mute itself change its DNS ...