Sponsored Content
Top Forums Shell Programming and Scripting Want to automate some DNS checks Post 302972906 by joeyg on Wednesday 11th of May 2016 01:21:43 PM
Old 05-11-2016
Your current example is rather simple where you are looking for the result.
I remember looking at sites and also doing repeated PING tests to the site to measure responsiveness. And rather than seeing results from ten PING's, I had a summary message to tell me - for instance "8/10 PING command response <__seconds"
Or, maybe you would do a WHOIS command to the domain, and grep for "STATUS" to make sure the domain is active.
 

10 More Discussions You Might Find Interesting

1. Solaris

Solaris DNS Client For Microsoft DNS Server

hey guys, how to add soalris box as a microsoft DNS Client ? and how to register in the microsoft DNS ?? i managed to query from the DNS server after adding /etc/resolve.conf and editing /etc/nsswitch.conf but i need to register the soalris server (dns Client) into Microsoft DNS automatically.... (3 Replies)
Discussion started by: mduweik
3 Replies

2. UNIX for Dummies Questions & Answers

health checks

Hello Anyone please help me with a health check script on HP-UX. (1 Reply)
Discussion started by: mahlathini
1 Replies

3. UNIX for Advanced & Expert Users

Doing Checks on a file

I have a process that I am trying to provide a solution for and have hit a brick wall and would like some pointers in the right direction. Basically on a daily basis a report is automatically generated in a CSV format (FIRST.CSV) which includes codes and amounts in the following format: ... (6 Replies)
Discussion started by: SAMZ
6 Replies

4. AIX

Pre-checks

AIX Guys!!! What pre-checks would you do on a 5.3 server before TL/SP/APAR installation? Bala (2 Replies)
Discussion started by: balaji_prk
2 Replies

5. UNIX for Advanced & Expert Users

DNS server choice: Windows DNS vs Linux BIND

I'd like to get some opnions on choosing DNS server: Windows DNS vs Linux BIND comparrsion: 1) managment, easy of use 2) Security 3) features 4) peformance 5) ?? I personally prefer Windows DNS server for management, it supports GUI and command line. But I am not sure about security... (2 Replies)
Discussion started by: honglus
2 Replies

6. Red Hat

DNS A-Record point to another DNS

Hi, I have a question on how to point the DNS server-1's A-record to second DNS server, which is DNS server-2. So, the computer can access other domain which only listed in the DNS server-2. The scenario is as follow: http://img689.imageshack.us/img689/6333/12234.png How to configure this... (4 Replies)
Discussion started by: Paris Heng
4 Replies

7. Red Hat

DHCP & DNS - Clients get IP but don't register in DNS

I am trying to setup a CentOS 6.2 server that will be doing 3 things DHCP, DNS & Samba for a very small office (2 users). The idea being this will replace a very old Win2k server. The users are all windows based clients so only the server will be Linux based. I've installed CentOS 6.2 with... (4 Replies)
Discussion started by: FireBIade
4 Replies

8. Shell Programming and Scripting

Daily Checks

Hey Guys, I'm seeking some assistance in getting this script to run as a cron job for the user oracle.. the script is basically to perform 2 ADRCI checks... see the script below... i'm getting the following error: /export/home/oracle/Daily_Checks/ADRCI_Daily_Checks.sh: syntax error at line 16:... (7 Replies)
Discussion started by: Racegod
7 Replies

9. Shell Programming and Scripting

Script to do the following checks

Hi , I need a script for processing below scenario. I have to check daily by doing ftp IP to check it is logging or not. So i want this activity to be automated such that if login succesful i will get "FTP LOGIN SUCCESS" in a log file and if fails i want the error message in the same log... (1 Reply)
Discussion started by: sv0081493
1 Replies

10. Solaris

DNS client added to DNS server but not working

Hi, We have built a new server (RHEL VM)and added that IP/hostname into dns zone configs file on DNS server (Solaris 10). Reloaded the configuration using and added nameserver into resolv.conf on client. But when I am trying nslookup, its not getting resolved. The nameserver is not able to... (8 Replies)
Discussion started by: snchaudhari2
8 Replies
irc(n)							    Low Level Tcl IRC Interface 						    irc(n)

__________________________________________________________________________________________________________________________________________________

NAME
irc - Create IRC connection and interface. SYNOPSIS
package require Tcl package require irc ?0.6.1? ::irc::config ?key? ?value? ::irc::connection ::irc::connections ::irc::destroy net net registerevent event script net getevent event script net eventexists event script net connect hostname ?port? net config ?key? ?value? net log level message net logname net connected net sockname net peername net socket net user username localhostname localdomainname userinfo net nick nick net ping target net serverping net join channel ?key? net part channel ?message? net quit ?message? net privmsg target message net notice target message net ctcp target message net kick channel target ?message? net mode target args net topic channel message net invite channel target net send text who ?address? action target additional header msg _________________________________________________________________ DESCRIPTION
This package provides low-level commands to deal with the IRC protocol (Internet Relay Chat) for immediate and interactive multi-cast com- munication. ::irc::config ?key? ?value? Sets configuration ?key? to ?value?. The configuration keys currently defined are the boolean flags logger and debug. logger makes irc use the logger package for printing error. debug requires logger and prints extra debug output. If no ?key? or ?value? is given the current values are returned. ::irc::connection The command creates a new object to deal with an IRC connection. Creating this IRC object does not automatically create the network connection. It returns a new irc namespace command which can be used to interact with the new IRC connection. NOTE: the old form of the connection command, which took a hostname and port as arguments, is deprecated. Use connect instead to specify this informa- tion. ::irc::connections Returns a list of all the current connections that were created with connection ::irc::destroy net Deletes a connection and its associated namespace and information. PER-CONNECTION COMMANDS In the following list of available connection methods net represents a connection command as returned by ::irc::connection. net registerevent event script Registers a callback handler for the specific event. Events available are those described in RFC 1459 http://www.rfc-edi- tor.org/rfc/rfc1459.txt. In addition, there are several other events defined. defaultcmd adds a command that is called if no other callback is present. EOF is called if the connection signals an End of File condition. The events defaultcmd, defaultnumeric, and defaultevent are required. script is executed in the connection namespace, which can take advantage of several commands (see Call- back Commands below) to aid in the parsing of data. net getevent event script Returns the current handler for the event if one exists. Otherwise an empty string is returned. net eventexists event script Returns a boolean value indicating the existence of the event handler. net connect hostname ?port? This causes the socket to be established. ::irc::connection created the namespace and the commands to be used, but did not actually open the socket. This is done here. NOTE: the older form of 'connect' did not require the user to specify a hostname and port, which were specified with 'connection'. That form is deprecated. net config ?key? ?value? The same as ::irc::config but sets and gets options for the net connection only. net log level message If logger is turned on by config this will write a log message at level. net logname Returns the name of the logger instance if logger is turned on. net connected Returns a boolean value indicating if this connection is connected to a server. net sockname Returns a 3 element list consisting of the ip address, the hostname, and the port of the local end of the connection, if currently connected. net peername Returns a 3 element list consisting of the ip address, the hostname, and the port of the remote end of the connection, if currently connected. net socket Return the Tcl channel for the socket used by the connection. net user username localhostname localdomainname userinfo Sends USER command to server. username is the username you want to appear. localhostname is the host portion of your hostname, localdomainname is your domain name, and userinfo is a short description of who you are. The 2nd and 3rd arguments are normally ignored by the IRC server. net nick nick NICK command. nick is the nickname you wish to use for the particular connection. net ping target Send a CTCP PING to target. net serverping PING the server. net join channel ?key? channel is the IRC channel to join. IRC channels typically begin with a hashmark ("#") or ampersand ("&"). net part channel ?message? Makes the client leave channel. Some networks may support the optional argument message net quit ?message? Instructs the IRC server to close the current connection. The package will use a generic default if no message was specified. net privmsg target message Sends message to target, which can be either a channel, or another user, in which case their nick is used. net notice target message Sends a notice with message message to target, which can be either a channel, or another user, in which case their nick is used. net ctcp target message Sends a CTCP of type message to target net kick channel target ?message? Kicks the user target from the channel channel with a message. The latter can be left out. net mode target args Sets the mode args on the target target. target may be a channel, a channel user, or yourself. net topic channel message Sets the topic on channel to message specifying an empty string will remove the topic. net invite channel target Invites target to join the channel channel net send text Sends text to the IRC server. CALLBACK COMMANDS
These commands can be used within callbacks who ?address? Returns the nick of the user who performed a command. The optional keyword address causes the command to return the user in the format "username@address". action Returns the action performed, such as KICK, PRIVMSG, MODE, etc... Normally not useful, as callbacks are bound to a particular event. target Returns the target of a particular command, such as the channel or user to whom a PRIVMSG is sent. additional Returns a list of any additional arguments after the target. header Returns the entire event header (everything up to the :) as a proper list. msg Returns the message portion of the command (the part after the :). BUGS, IDEAS, FEEDBACK This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category irc of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation. SEE ALSO
rfc 1459 KEYWORDS
chat, irc irc 0.6.1 irc(n)
All times are GMT -4. The time now is 09:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy